3.9.43 \(\int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx\) [843]

3.9.43.1 Optimal result
3.9.43.2 Mathematica [A] (verified)
3.9.43.3 Rubi [A] (verified)
3.9.43.4 Maple [C] (verified)
3.9.43.5 Fricas [A] (verification not implemented)
3.9.43.6 Sympy [F(-1)]
3.9.43.7 Maxima [B] (verification not implemented)
3.9.43.8 Giac [A] (verification not implemented)
3.9.43.9 Mupad [B] (verification not implemented)

3.9.43.1 Optimal result

Integrand size = 27, antiderivative size = 105 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {3 \sec ^5(c+d x)}{5 a^3 d}-\frac {\sec ^7(c+d x)}{a^3 d}+\frac {4 \sec ^9(c+d x)}{9 a^3 d}-\frac {3 \tan ^5(c+d x)}{5 a^3 d}-\frac {\tan ^7(c+d x)}{a^3 d}-\frac {4 \tan ^9(c+d x)}{9 a^3 d} \]

output
3/5*sec(d*x+c)^5/a^3/d-sec(d*x+c)^7/a^3/d+4/9*sec(d*x+c)^9/a^3/d-3/5*tan(d 
*x+c)^5/a^3/d-tan(d*x+c)^7/a^3/d-4/9*tan(d*x+c)^9/a^3/d
 
3.9.43.2 Mathematica [A] (verified)

Time = 0.71 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.76 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {5376-1764 \cos (c+d x)-4032 \cos (2 (c+d x))-98 \cos (3 (c+d x))+768 \cos (4 (c+d x))+294 \cos (5 (c+d x))-64 \cos (6 (c+d x))+4608 \sin (c+d x)-1323 \sin (2 (c+d x))-128 \sin (3 (c+d x))-588 \sin (4 (c+d x))+384 \sin (5 (c+d x))+49 \sin (6 (c+d x))}{46080 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3 (a+a \sin (c+d x))^3} \]

input
Integrate[(Sec[c + d*x]*Tan[c + d*x]^3)/(a + a*Sin[c + d*x])^3,x]
 
output
(5376 - 1764*Cos[c + d*x] - 4032*Cos[2*(c + d*x)] - 98*Cos[3*(c + d*x)] + 
768*Cos[4*(c + d*x)] + 294*Cos[5*(c + d*x)] - 64*Cos[6*(c + d*x)] + 4608*S 
in[c + d*x] - 1323*Sin[2*(c + d*x)] - 128*Sin[3*(c + d*x)] - 588*Sin[4*(c 
+ d*x)] + 384*Sin[5*(c + d*x)] + 49*Sin[6*(c + d*x)])/(46080*d*(Cos[(c + d 
*x)/2] - Sin[(c + d*x)/2])^3*(Cos[(c + d*x)/2] + Sin[(c + d*x)/2])^3*(a + 
a*Sin[c + d*x])^3)
 
3.9.43.3 Rubi [A] (verified)

Time = 0.56 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.04, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3042, 3354, 3042, 3352, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\tan ^3(c+d x) \sec (c+d x)}{(a \sin (c+d x)+a)^3} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {\sin (c+d x)^3}{\cos (c+d x)^4 (a \sin (c+d x)+a)^3}dx\)

\(\Big \downarrow \) 3354

\(\displaystyle \frac {\int \sec ^7(c+d x) (a-a \sin (c+d x))^3 \tan ^3(c+d x)dx}{a^6}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \frac {\sin (c+d x)^3 (a-a \sin (c+d x))^3}{\cos (c+d x)^{10}}dx}{a^6}\)

\(\Big \downarrow \) 3352

\(\displaystyle \frac {\int \left (a^3 \tan ^3(c+d x) \sec ^7(c+d x)-3 a^3 \tan ^4(c+d x) \sec ^6(c+d x)+3 a^3 \tan ^5(c+d x) \sec ^5(c+d x)-a^3 \tan ^6(c+d x) \sec ^4(c+d x)\right )dx}{a^6}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {-\frac {4 a^3 \tan ^9(c+d x)}{9 d}-\frac {a^3 \tan ^7(c+d x)}{d}-\frac {3 a^3 \tan ^5(c+d x)}{5 d}+\frac {4 a^3 \sec ^9(c+d x)}{9 d}-\frac {a^3 \sec ^7(c+d x)}{d}+\frac {3 a^3 \sec ^5(c+d x)}{5 d}}{a^6}\)

input
Int[(Sec[c + d*x]*Tan[c + d*x]^3)/(a + a*Sin[c + d*x])^3,x]
 
output
((3*a^3*Sec[c + d*x]^5)/(5*d) - (a^3*Sec[c + d*x]^7)/d + (4*a^3*Sec[c + d* 
x]^9)/(9*d) - (3*a^3*Tan[c + d*x]^5)/(5*d) - (a^3*Tan[c + d*x]^7)/d - (4*a 
^3*Tan[c + d*x]^9)/(9*d))/a^6
 

3.9.43.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3352
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n 
_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig 
[(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F 
reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
 

rule 3354
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n 
_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* 
m)   Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] 
)^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && 
ILtQ[m, 0]
 
3.9.43.4 Maple [C] (verified)

Result contains complex when optimal does not.

Time = 0.64 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.26

method result size
risch \(\frac {4 i \left (2 i {\mathrm e}^{3 i \left (d x +c \right )}-12 \,{\mathrm e}^{2 i \left (d x +c \right )}-6 i {\mathrm e}^{i \left (d x +c \right )}+18 \,{\mathrm e}^{4 i \left (d x +c \right )}+1-84 \,{\mathrm e}^{6 i \left (d x +c \right )}-18 i {\mathrm e}^{5 i \left (d x +c \right )}+45 \,{\mathrm e}^{8 i \left (d x +c \right )}+54 i {\mathrm e}^{7 i \left (d x +c \right )}\right )}{45 \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{9} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )^{3} d \,a^{3}}\) \(132\)
parallelrisch \(\frac {-\frac {4}{45}-\frac {112 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15}-\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{45}-\frac {8 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {8 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {16 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15}-\frac {8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{15}-4 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\frac {24 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}}{d \,a^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}\) \(139\)
derivativedivides \(\frac {-\frac {1}{24 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{16 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {8}{9 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}-\frac {4}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{8}}+\frac {8}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{7}}-\frac {28}{3 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{6}}+\frac {67}{10 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {11}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {5}{12 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{512 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+512}}{d \,a^{3}}\) \(190\)
default \(\frac {-\frac {1}{24 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{16 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {8}{9 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}-\frac {4}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{8}}+\frac {8}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{7}}-\frac {28}{3 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{6}}+\frac {67}{10 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {11}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {5}{12 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {1}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{512 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+512}}{d \,a^{3}}\) \(190\)
norman \(\frac {-\frac {112 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d a}-\frac {4}{45 a d}-\frac {24 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d a}-\frac {4 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}-\frac {8 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d a}-\frac {8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{15 d a}-\frac {16 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 d a}-\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{45 d a}-\frac {8 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 d a}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3} a^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}\) \(190\)

input
int(sec(d*x+c)^4*sin(d*x+c)^3/(a+a*sin(d*x+c))^3,x,method=_RETURNVERBOSE)
 
output
4/45*I*(2*I*exp(3*I*(d*x+c))-12*exp(2*I*(d*x+c))-6*I*exp(I*(d*x+c))+18*exp 
(4*I*(d*x+c))+1-84*exp(6*I*(d*x+c))-18*I*exp(5*I*(d*x+c))+45*exp(8*I*(d*x+ 
c))+54*I*exp(7*I*(d*x+c)))/(exp(I*(d*x+c))+I)^9/(exp(I*(d*x+c))-I)^3/d/a^3
 
3.9.43.5 Fricas [A] (verification not implemented)

Time = 0.27 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.24 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {2 \, \cos \left (d x + c\right )^{6} - 9 \, \cos \left (d x + c\right )^{4} + 15 \, \cos \left (d x + c\right )^{2} - {\left (6 \, \cos \left (d x + c\right )^{4} - 5 \, \cos \left (d x + c\right )^{2} + 5\right )} \sin \left (d x + c\right ) - 10}{45 \, {\left (3 \, a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3} + {\left (a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )}} \]

input
integrate(sec(d*x+c)^4*sin(d*x+c)^3/(a+a*sin(d*x+c))^3,x, algorithm="frica 
s")
 
output
1/45*(2*cos(d*x + c)^6 - 9*cos(d*x + c)^4 + 15*cos(d*x + c)^2 - (6*cos(d*x 
 + c)^4 - 5*cos(d*x + c)^2 + 5)*sin(d*x + c) - 10)/(3*a^3*d*cos(d*x + c)^5 
 - 4*a^3*d*cos(d*x + c)^3 + (a^3*d*cos(d*x + c)^5 - 4*a^3*d*cos(d*x + c)^3 
)*sin(d*x + c))
 
3.9.43.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\text {Timed out} \]

input
integrate(sec(d*x+c)**4*sin(d*x+c)**3/(a+a*sin(d*x+c))**3,x)
 
output
Timed out
 
3.9.43.7 Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 422 vs. \(2 (97) = 194\).

Time = 0.23 (sec) , antiderivative size = 422, normalized size of antiderivative = 4.02 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {4 \, {\left (\frac {6 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {12 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {2 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {18 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {18 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {84 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {54 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {45 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + 1\right )}}{45 \, {\left (a^{3} + \frac {6 \, a^{3} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {12 \, a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {2 \, a^{3} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {27 \, a^{3} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {36 \, a^{3} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {36 \, a^{3} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {27 \, a^{3} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - \frac {2 \, a^{3} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} - \frac {12 \, a^{3} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {6 \, a^{3} \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} - \frac {a^{3} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}}\right )} d} \]

input
integrate(sec(d*x+c)^4*sin(d*x+c)^3/(a+a*sin(d*x+c))^3,x, algorithm="maxim 
a")
 
output
4/45*(6*sin(d*x + c)/(cos(d*x + c) + 1) + 12*sin(d*x + c)^2/(cos(d*x + c) 
+ 1)^2 + 2*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 18*sin(d*x + c)^4/(cos(d* 
x + c) + 1)^4 + 18*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 + 84*sin(d*x + c)^6 
/(cos(d*x + c) + 1)^6 + 54*sin(d*x + c)^7/(cos(d*x + c) + 1)^7 + 45*sin(d* 
x + c)^8/(cos(d*x + c) + 1)^8 + 1)/((a^3 + 6*a^3*sin(d*x + c)/(cos(d*x + c 
) + 1) + 12*a^3*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 2*a^3*sin(d*x + c)^3 
/(cos(d*x + c) + 1)^3 - 27*a^3*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 - 36*a^ 
3*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 + 36*a^3*sin(d*x + c)^7/(cos(d*x + c 
) + 1)^7 + 27*a^3*sin(d*x + c)^8/(cos(d*x + c) + 1)^8 - 2*a^3*sin(d*x + c) 
^9/(cos(d*x + c) + 1)^9 - 12*a^3*sin(d*x + c)^10/(cos(d*x + c) + 1)^10 - 6 
*a^3*sin(d*x + c)^11/(cos(d*x + c) + 1)^11 - a^3*sin(d*x + c)^12/(cos(d*x 
+ c) + 1)^12)*d)
 
3.9.43.8 Giac [A] (verification not implemented)

Time = 0.40 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.53 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=-\frac {\frac {15 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}}{a^{3} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{3}} - \frac {45 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 540 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 3120 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 5940 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 8298 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 6372 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 3528 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 972 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 113}{a^{3} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{9}}}{1440 \, d} \]

input
integrate(sec(d*x+c)^4*sin(d*x+c)^3/(a+a*sin(d*x+c))^3,x, algorithm="giac" 
)
 
output
-1/1440*(15*(3*tan(1/2*d*x + 1/2*c)^2 + 1)/(a^3*(tan(1/2*d*x + 1/2*c) - 1) 
^3) - (45*tan(1/2*d*x + 1/2*c)^8 + 540*tan(1/2*d*x + 1/2*c)^7 + 3120*tan(1 
/2*d*x + 1/2*c)^6 + 5940*tan(1/2*d*x + 1/2*c)^5 + 8298*tan(1/2*d*x + 1/2*c 
)^4 + 6372*tan(1/2*d*x + 1/2*c)^3 + 3528*tan(1/2*d*x + 1/2*c)^2 + 972*tan( 
1/2*d*x + 1/2*c) + 113)/(a^3*(tan(1/2*d*x + 1/2*c) + 1)^9))/d
 
3.9.43.9 Mupad [B] (verification not implemented)

Time = 17.32 (sec) , antiderivative size = 255, normalized size of antiderivative = 2.43 \[ \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx=\frac {\frac {4\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}}{45}+\frac {8\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{15}+\frac {16\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{15}+\frac {8\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{45}+\frac {8\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{5}+\frac {8\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{5}+\frac {112\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{15}+\frac {24\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{5}+4\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{a^3\,d\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^3\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^9} \]

input
int(sin(c + d*x)^3/(cos(c + d*x)^4*(a + a*sin(c + d*x))^3),x)
 
output
((4*cos(c/2 + (d*x)/2)^12)/45 + (8*cos(c/2 + (d*x)/2)^11*sin(c/2 + (d*x)/2 
))/15 + 4*cos(c/2 + (d*x)/2)^4*sin(c/2 + (d*x)/2)^8 + (24*cos(c/2 + (d*x)/ 
2)^5*sin(c/2 + (d*x)/2)^7)/5 + (112*cos(c/2 + (d*x)/2)^6*sin(c/2 + (d*x)/2 
)^6)/15 + (8*cos(c/2 + (d*x)/2)^7*sin(c/2 + (d*x)/2)^5)/5 + (8*cos(c/2 + ( 
d*x)/2)^8*sin(c/2 + (d*x)/2)^4)/5 + (8*cos(c/2 + (d*x)/2)^9*sin(c/2 + (d*x 
)/2)^3)/45 + (16*cos(c/2 + (d*x)/2)^10*sin(c/2 + (d*x)/2)^2)/15)/(a^3*d*(c 
os(c/2 + (d*x)/2) - sin(c/2 + (d*x)/2))^3*(cos(c/2 + (d*x)/2) + sin(c/2 + 
(d*x)/2))^9)